package org.ftc.service;

import java.util.List;

import org.ftc.dao.InChargeDao;
import org.ftc.domain.InCharge;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InChargeService {
	
	@Autowired
	InChargeDao inChargeDao;
	@Autowired
	private UsersService usersService;
	
	public InCharge load(String id) {
		return inChargeDao.load(id);
	}

	public InCharge get(String id) {
		return inChargeDao.get(id);
	}
	
	public synchronized boolean save(InCharge entity) {
		return inChargeDao.save(entity);
	}


	public synchronized boolean saveOrUpdate(InCharge entity) {
		return inChargeDao.saveOrUpdate(entity);
	}

	public synchronized boolean update(InCharge entity) {
		return inChargeDao.update(entity);
	}

	public synchronized boolean delete(InCharge entity) {
		return inChargeDao.delete(entity);
	}

	public synchronized boolean delete(String id) {
		return inChargeDao.delete(id);
	}
	

	public List<InCharge> findAll() {
		return inChargeDao.findAll();
	}

	public long countAll() {
		return inChargeDao.countAll();
	}
	
	
	
}
